package com.aaa.os;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableEurekaClient //开启eureka客户端  当注册中心为eureka时，使用该注解
//@EnableDiscoveryClient  开启客户端发现，任何注册中心都可以使用该注解  两者选其一
@MapperScan("com.aaa.os.dao")
@EnableTransactionManagement
public class OrderBAPP {
    public static void main(String[] args) {
        SpringApplication.run(OrderBAPP.class,args);
    }
}
